﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Script.UI.Component
{
	public enum HistogramDataType
	{
		E_None,
		E_Temperature,
		E_Humidity,
	}

	public interface IHistogramData
	{
		double Current { get; set; }
		double Max { get; set; }
		double Min { get; set; }
		long Timestamp { get; set; }

	}

	public interface IHistogramData2 : IHistogramData
	{
		double Current2 { get; set; }
	}

	public interface IHistogramData4 : IHistogramData2
	{
		double Current3 { get; set; }
		double Current4 { get; set; }
	}

	public class HistogramDataBase
	{
		public long Timestamp { get; set; }
	}

	public class HistogramData_Temperature : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

	public class HistogramData_GongDan : HistogramDataBase, IHistogramData4
	{
		public double Current { get; set; }
		public double Current2 { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
		public double Current3 { get; set; }
		public double Current4 { get; set; }
	}

	public class HistogramData_Humidity : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

	public class HistogramData_Repertory : HistogramDataBase, IHistogramData2
	{
		public double Current { get; set; }
		public double Current2 { get; set; }

		public double Max { get; set; }
		public double Min { get; set; }
	}


	public class HistogramData_EnergyConsumption : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

	public class HistogramData_SortingEfficient : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

	public class HistogramData_SortingDuration : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

	public class HistogramData_SortingCount : HistogramDataBase, IHistogramData2
	{
		public double Current { get; set; }
		public double Current2 { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
		
	}

	public class HistogramData_Visitor : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}
	
	public class HistogramData_AirPressure : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}
	
	public class HistogramData_Voltage : HistogramDataBase, IHistogramData
	{
		public double Current { get; set; }
		public double Max { get; set; }
		public double Min { get; set; }
	}

}